package com.zeny.edu.eduservice.client;

import com.zeny.edu.common.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zeny
 */
@FeignClient("zong-videoservice")
@Component
public interface VidClient {

    /**
     * @Description 调用zong-videoservice服务进行视频的删除
     * @Date 2020/3/8 0008 7:38
     * @param videoId @PathVariable必须指定参数名称
     * @return com.zeny.edu.common.ResponseResult
     **/
    @DeleteMapping(value = "/videoservice/vod/{videoId}")
    public ResponseResult removceVideo(@PathVariable("videoId") String videoId);

    /**
     * @Description 删除多个视频
     * @Date 2020/3/8 0008 8:17
     * @param videoList
     * @return com.zeny.edu.common.ResponseResult
     **/
    @DeleteMapping("/videoservice/vod/removeMoreVideo")
    public ResponseResult deleteMoreVideo(@RequestParam("videoList") List<String> videoList);
}
